package com.kugua.zfms.config.mvc;

import com.kugua.zfms.intercepter.DemoIntercepter;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * <p>TODO</p>
 * <p>
 * <PRE>
 * <BR>    修改记录
 * <BR>-----------------------------------------------
 * <BR>    修改日期         修改人          修改内容
 * </PRE>
 *
 * @author cuiyh9
 * @version 1.0
 * @Date Created in 2018年11月20日 11:05
 * @since 1.0
 */
@Configuration
public class Demo2WebMvcConfigurer implements WebMvcConfigurer {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new DemoIntercepter()).addPathPatterns("/demo/**");
        WebMvcConfigurer.super.addInterceptors(registry);
    }

}
